package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBParent;
import ModelLayer.Parent;

public class ParentCTR
{
	public ArrayList<Parent> findAllParents()
    {
		DBParent dbParent = new DBParent();
        ArrayList<Parent> allParents = new ArrayList<Parent>();
        allParents = dbParent.getAllParents(false);
        return allParents;
    }
	
	public Parent findParentID(int ParentID)
	{
		DBParent dbParent = new DBParent();
		return dbParent.searchParentID(ParentID, true);
	}
}
